	function ajaxrendercomponent(name) {
			 alert(name);

  		alert(name + http_request.responseText);
        if (name == 'createlist' || name == 'deletelist'){
            nameval='listmaintenancegrid';
            listmaintenancegridload();
        }

		if (name == 'updateitemselectedoptions'){
		   hideBox();
		}

		if (name == 'showtaxgrid') {
		   document.getElementById('taxmaintenancegrid').innerHTML=http_request.responseText;
		}

		if (name == 'addtaxrate') {
			showtaxgrid();
		}

		if (name == 'deletetaxrate') {
			showtaxgrid();
		}

		if (name == 'edititemoptions'){
		   document.getElementById('inner-box').innerHTML=http_request.responseText;
		   document.getElementById('boxtitle').innerHTML='Item Options';
           document.getElementById('box').style.width=415 + 'px'; 
		   document.getElementById('box').style.left='2%'; 
		   document.getElementById('box').style.height=460 + 'px'; 
		   showBox();
		   createAllSortables();
		}									

		if (name == 'searchbysku'){
		   document.getElementById('itemmaintenancegrid').innerHTML=http_request.responseText;
		}
	
        if (name == 'addoption'){
            nameval='listmaintenancegrid';
            listmaintenancegridload();
        }

        if (name == 'getdefaultoptions'){
            document.getElementById('specifydefault').innerHTML=http_request.responseText;
        }

        if (name == 'editgetdefaultoptions'){
            document.getElementById('editspecifydefault').innerHTML=http_request.responseText;
        }	

        if (name == 'editlistproperties'){
            showBox();
            document.getElementById('inner-box').innerHTML=http_request.responseText;
        }
	
        if (name == 'updatelistproperties'){
            nameval='listmaintenancegrid';
            listmaintenancegridload();
        }
	
        if (name == 'updatelistproperties'){
            nameval='listmaintenancegrid';
            listmaintenancegridload();
        }
	
        if (name == 'editoptionproperties'){
            document.getElementById('inner-box').innerHTML=http_request.responseText;
            editsetdefaultoptions();
            editchooseoptions();
            showBox();
        }

		if (name == 'getchunkcontent'){
			tinyMCE.execCommand( 'mceRemoveControl' , true, 'contentArea' );
			document.getElementById('contentArea').value=http_request.responseText;
			tinyMCE.execCommand( 'mceAddControl', true, 'contentArea' );
		}

        if (name == 'updateoption'){
            nameval='listmaintenancegrid';
            listmaintenancegridload();
        }

        if (name == 'deleteoption'){
            nameval='listmaintenancegrid';
            listmaintenancegridload();
        }
		
		if (name == 'filteritemslist'){
		   document.getElementById('itemmaintenancegrid').innerHTML=http_request.responseText;
		}

        if (name == 'editlistoptionproperties'){
            showBox();
            document.getElementById('inner-box').innerHTML=http_request.responseText;
        }

        if (name == 'editlistoption'){
            hideBox();
            listoptionmaintenancegridload();
        }

        if (name == 'addlistoption' || name == 'deletelistoption'){ 
			editlist(document.getElementById('listid').value); 
		} 
		
		if (name == 'editdropdowngrid'){ 
			document.getElementById('editdropdowngrid').innerHTML=http_request.responseText; 
		} 
		if (name == 'listmaintenancegrid' || name == 'deletelist'){ 
			document.getElementById(name).innerHTML=http_request.responseText; 
		} 
		if (name == 'edituserproperties'){ 
			document.getElementById('inner-box').innerHTML=http_request.responseText; 
			showBox(); 
			document.getElementById('box').style.width='500px'; 
		} 
		if (name == 'updateuserproperties'){ 
			hideBox(); 
			searchforcust(); 
		} 
		if (name == 'updatecustomergrid'){ 
			document.getElementById('customermaintenancegrid').innerHTML=http_request.responseText; 
		} 
		if (name == 'vieworderinfo'){ document.getElementById('inner-box').innerHTML=http_request.responseText; 
			document.getElementById('inner-box').style.margin='20px'; 
			showBox(); 
			document.getElementById('box').style.width='600px';
		   	document.getElementById('box').style.left='27%'; 
		} 
		if (name == 'updateordersgrid'){ 
			document.getElementById('ordermaintenancegrid').innerHTML=http_request.responseText; 
		} 
		if (name == 'edititemproperties'){ 
			document.getElementById('inner-box').innerHTML=http_request.responseText; 
			document.getElementById('boxtitle').innerHTML='Item Properties';
			showBox(); 
			document.getElementById('box').style.width='90%';
			document.getElementById('box').style.top='10%'; 
			document.getElementById('box').style.left='4%'; 
			document.getElementById('box').style.height='80%'; 
			enableEdit("contentArea");
		}
		if (name == 'updateitemproperties'){
			hideBox();
			updateitemstats();
		} 
		if (name == 'updateitemstats'){
		   document.getElementById('itemstats').innerHTML=http_request.responseText;
           updateitemgrid();
		}
		
		if (name == 'updateitemgrid'){
		   document.getElementById('itemmaintenancegrid').innerHTML=http_request.responseText;
		}
}
